interface Person {
    fname :string;
    lname : string;
}

function greeter(person : Person){
    return `hello , ${person.fname} - ${person.lname}`
}

let user = {fname :'fnnn' , lname :'llll'}

let res = greeter(user)

console.log(res);

function printLabel(labeledObj: { label: string }) {
    console.log(labeledObj.label);
  }
  
  let myObj = { size: 10, label: "Size 10 Object" };
  printLabel(myObj);


  interface StringArray {
    [index: number]: string;
  }
  
  let myArray: StringArray;
  myArray = ["Bob", "Fred"];
  
  let myStr: string = myArray[0];

  console.log(`mystr : ${myStr}`);
  
  

  